package org.xx.armory.commons;

public class JsonPropertyException
        extends RuntimeException {
    static final long serialVersionUID = 1L;

    public JsonPropertyException(
            Object object,
            String name
    ) {
        super("Cannot read property: " + name + " of " + object);
    }

    public JsonPropertyException(
            Object object,
            String name,
            String type
    ) {
        super("Cannot read property: " + name + " of " + object + " as " + type);
    }
}
